Commands > C commands > CAL > 
Calculate a Distance
 
 
 
Quick Reference
dist(p1,p2)

Determines the distance between two points, p1 and p2. This is the same as the vector expression abs(p1-p2).

dpl(p,p1,p2)

Determines the shortest distance between point p and the line passing through points p1 and p2.

dpp(p,p1,p2,p3)

Determines the distance from a point p to a plane defined by three points (p1,p2,p3).

dist(p1,p2)

Determines the distance between two points, p1 and p2. This is the same as the vector expression abs(p1-p2).

The following example returns half the distance between the centers of two selected objects:

dist(cen,cen)/2

The following example finds the distance between the point 3,2,4 and a plane you define by selecting three endpoints:

dpp([3,2,4],end, end, end)